#pragma once

#include <AP_HAL/AP_HAL_Boards.h>
#include <AP_Logger/AP_Logger_config.h>

#ifndef AP_CAN_SLCAN_ENABLED
#define AP_CAN_SLCAN_ENABLED HAL_MAX_CAN_PROTOCOL_DRIVERS
#endif

#ifndef AP_CAN_LOGGING_ENABLED
#define AP_CAN_LOGGING_ENABLED HAL_MAX_CAN_PROTOCOL_DRIVERS && HAL_LOGGING_ENABLED
#endif

#ifndef AP_MAVLINKCAN_ENABLED
#define AP_MAVLINKCAN_ENABLED (HAL_CANMANAGER_ENABLED && HAL_GCS_ENABLED)
#endif  // AP_MAVLINKCAN_ENABLED
